<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="stylesheet" href="static/css/style.css">
    <link rel="stylesheet" href="static/css/login.css?v1.01">

</head>
<body>

<div class="msgbox">
    提示信息:
    <div class="title"></div>

</div>





<script type="text/javascript" src="static/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="static/js/config.js"></script>
<script type="text/javascript">
    window.onload=function () {

        $.ajax({
            url: 'app/api/index.php',
            method: "post",
            data: {

            },
            dataType:'json',
            success: function (res) {
                if(res.code!=200){
                    tips("您还未登录");
                     var time=3;
                     var settimer=setInterval(function(){
                         $(".title").html("还未登录 即将跳转 "+time+" 秒");
                         if(time==0){
                             window.location.href="view/login.html";
                             clearInterval(settimer)
                         }
                         time--;


                     },1000);
                }
                else {
                    $(".title").html("登录成功  ");
                }

            },
            error: function (e) {
                console.log("错误")
            }
        })
    }

</script>

</body>
</html>